package com.wq.httpclientcore.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wq.httpclientcore.entities.po.DbConnectionConfig;
import com.wq.httpclientcore.entities.po.DbQueryConfig;
import com.wq.httpclientcore.entities.req.query.DbConnectionConfigREQ;

import java.util.List;
import java.util.Map;

public interface DbConnectionConfigService extends IService<DbConnectionConfig> {
    /**
     * 查询列表
     *
     * @param req
     * @return
     */
    List<DbConnectionConfig> list(DbConnectionConfigREQ req);

    /**
     * 分页查询
     * @param req
     * @return
     */
    Page<DbConnectionConfig> pageList(DbConnectionConfigREQ req);

    boolean saveDbConnectionConfig(DbConnectionConfig po);

    boolean updateDbConnectionConfig(DbConnectionConfig po);

    /**
     * id:po钩子
     * @param ids
     * @return
     */
    Map<Long, DbConnectionConfig> id2PO(List<Long> ids);

    Boolean deletedById(List<Long> list);
}